import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

import store from './state';
import { Provider } from 'react-redux';

import ThemeProvider from './styles/theme';

import {
    GlobalStyle
} from './styles';

ReactDOM.render(
    <Provider store={store}>
        <GlobalStyle />
        <ThemeProvider>
            <App />
        </ThemeProvider>
    </Provider>,
    document.getElementById('root')
);

